package com.gitee.magic.framework.head.exception;

import com.gitee.magic.core.exception.ApplicationException;

/**
 * 由业务而引起的程序异常信息,带异常信息
 * @author Start
 */
public class BusinessAdviceException extends ApplicationException {
	
	private static final long serialVersionUID = 1L;

	private Object[] args;
	private String message;
	
	public BusinessAdviceException(Throwable e,String message){
		super(e);
		this.message=message;
	}
	
	public BusinessAdviceException(Throwable e,String message,Object... args){
		super(e);
		this.message=message;
		this.args=args;
	}

	@Override
	public String getMessage() {
		return message;
	}

	public Object[] getArgs() {
		return args;
	}
	
}
